package com.itheima.继承_练习.重载;

public class Fu {
    /*public Fu(){
        System.out.println("父类无参构造");
    }*/
    public Fu(int a){
        System.out.println("父类有参构造");
    }
}


 class Zi extends Fu{
    public Zi(){
        super(10);
        System.out.println("子类无参构造");
    }
     public Zi(int a){
        this();
         System.out.println("子类有参构造");
     }
}